package com.factory._17memento.demo1;

/**
 * 备忘录角色
 * 责任：
 * 将Originator对象的内部状态存储起来
 * 保护内部信息只能被发起人读取
 * @author Qinye
 * @date 2023/8/13 18:25
 */
public class Memento {
    private String state;
    public Memento(String state) {
        this.state=state;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
}
